(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
"use strict";

(function () {
    var template = function template(self) {
        return self.innerHTML;
    };

    function setSelected(self, newval) {
        self.$activeIndex = newval;
        if (self.children && self.children[newval]) {
            self.children[newval].auiAddOnceClass("active");
        }
        if (self.$lastActiveIndex > -1 && self.children[self.$lastActiveIndex]) {
            self.children[self.$lastActiveIndex].auiRemoveOnceClass("active");
        }
        self.$lastActiveIndex = newval;
    }

    document.auiDefineElement("aux-sel", {
        template: template,
        props: {
            selected: {
                observerProp: function observerProp(self) {
                    return {
                        get: function get() {
                            return self.$activeIndex;
                        },
                        set: function set(newval) {
                            setSelected(self, newval);
                        }
                    };
                },
                afterCreated: function afterCreated(self, newval) {
                    self.$lastActiveIndex = -1;
                    setSelected(self, newval);
                }
            }
        },
        created: function created(self) {},
        attached: function attached(self) {}
    });
})();
},{}]},{},[1])